package com.tensquare.tensquare_base.pojo;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author zhc
 * @create 2019-04-11  13:42
 */
@Entity
@Table(name = "tb_label")
public class Label implements Serializable {
    @Id
    private String id;
    private String labelname;//标签名称
    private String state;//状态
    private Long count;//使用数量
    private String recommend;//是否推荐
    private Long fans;//关注数

    public String getId() {

//        EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("entityManagerFactory");
//        EntityManager entityManager = entityManagerFactory.createEntityManager();
//        int id = 1;
//        Label label = entityManager.find(Label.class, id);
//        entityManager.createQuery("")
//        entityManager.refresh();
//        session.get(Label.class, id);
//        session.load()
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLabelname() {
        return labelname;
    }

    public void setLabelname(String labelname) {
        this.labelname = labelname;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    public Long getFans() {
        return fans;
    }

    public void setFans(Long fans) {
        this.fans = fans;
    }

}
